import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import 'lib-flexible/flexible'
Vue.config.productionTip = false
import axios from './api/http'

//将axios注册到vue实例上
Vue.prototype.$http = axios;

Vue.config.productionTip = false

//将token拿下来
let _token = localStorage.getItem("_token");
if(_token){
	store.commit('common/setToken',_token)
}
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
